#!/usr/bin/python
import re

if __name__ == '__main__':
	line = "Cats are smarter "
	 
	matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)
	 
	if matchObj:
	   print("matchObj.group() : ", matchObj.group())
	   print("matchObj.group(1) : ", matchObj.group(1))
	   print("matchObj.group(2) : ", matchObj.group(2))
	   # print("matchObj.group(3) : ", matchObj.group(3))
	else:
	   print("No match!!")